<script setup>
defineProps({
    control: Object,
    model: Object,
})
</script>

<template>
    <van-field :name="control.id" :label="control.props.label">
        <template #input>
            <van-switch
                v-model="model[control.id]"
                :active-color="control.props.activeColor"
                :inactive-color="control.props.inactiveColor"
                disabled
            />
        </template>
    </van-field>
</template>
